const countReducer = (state = { count: 0 }, actions) => {
  switch (actions.type) {
    case "DECREASE":
      return {
        ...state,
        count: state.count - 1,
      };
    case "INCREASE":
      return {
        ...state,
        count: state.count + 1,
      };
    default:
      return state;
  }
};
export default countReducer